home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <snippets>
- <section name="html4" description="HTML 4.0">
- <token name="basic template"><html>
- <head>
- <title></title>
- </head>
- <body>
- </body>
- </html></token>
- <token name="form_post"><form action="|" method="POST">
- </form></token>
- <token name="form_get"><form action="|" method="GET">
- </form></token>
- </section>
- <section name="php4" description="PHP 4.x">
- <token name="phpdef"><?php
-
- ?>
- </token>
- <token name="mysql_connect_and_query"> $lnk = mysql_connect("host","user","password);
- if ($lnk)
- $dbc = mysql_select_db("dbname");
- if ($dbc) {
- $query = "SELECT * FROM table";
- $result = mysql_query($query);
- if (!$result) echo "ERROR: ".mysql_error()."<br />".$query;
- }
- </token>
- </section>
- <section name="blah" description="blah">
- <token name="blah">blah</token>
- <token name="knowing">I know | at the end of the day</token>
- </section>
- <section name="template" description="Templates">
- <token name="PHP File"><!doctype html public "-//W3C//DTD HTML 4.0 //EN">
- <html>
- <head>
- <title>Title here!</title>
- </head>
- <body>
- <?php
-
- ?>
- </body>
- </html></token>
- <token name="PHP Unit Class"><?php
-
- // PEAR::phpUnit class
- // NOTE: you must replace the {classname} text, and modifiy the {something} text.
-
- require_once "PEAR.php";
- require_once "PHPUnit.php";
-
- require_once "{classname}";
-
- /**
- * PHP Unit test class
- *
- * Class for unit testing.
- *
- */
- class {classname}Test extends PHPUnit_TestCase {
-
- /**
- * constructor for the Unit Test.
- *
- */
- function {classname}Test ($name = "{classname}Test") {
- $this->PHPUnit_TestCase($name);
- }
-
- /**
- * initialization of the test environment
- *
- */
- function setUp() {
- }
-
- /**
- * de-initialization of the test environment
- *
- */
- function tearDown() {
- }
-
- /**
- * one test
- *
- */
- function test_{something}() {
-
- // try something
-
- // test
- $this->assertTrue(true, "error message if false");
- }
-
- }
-
- ?>
-
- </token>
- <token name="XHTML Basic"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
- "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
- <html>
- <!--
- XHTML Basic - for use with Small Information Appliances
- Document type as defined on http://www.w3.org/TR/1998/REC-html40-19980424/
- -->
- <head>
- <title>Title here!</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- </head>
- <frameset>
-
- </frameset>
- </html>
- </token>
- <token name="XHTML Frameset"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
- <html>
- <!--
- XHTML 1.0 Frameset
- Document type as defined on http://www.w3.org/TR/xhtml1/
- -->
- <head>
- <title>Title here!</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- </head>
- <frameset>
-
- </frameset>
- </html>
- </token>
- <token name="XHTML Strict"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <!--
- XHTML 1.0 Strict
- Document type as defined on http://www.w3.org/TR/xhtml1/
- -->
- <head>
- <title>Title here!</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- </head>
- <body>
-
- </body>
- </html>
- </token>
- <token name="XHTML Transitional"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <!--
- XHTML 1.0 Transitional
- Document type as defined on http://www.w3.org/TR/xhtml1/
- -->
- <head>
- <title>Title here!</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- </head>
- <body>
-
- </body>
- </html></token>
- <token name="HTML 4.01 Transitional"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <!--
- HTML 4.01 Transitional
- Document type as defined on http://www.w3.org/TR/html401/
- -->
- <head>
- <title>Title here!</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- </head>
- <body>
-
- </body>
- </html>
- </token>
- <token name="HTML 4.01 Strict"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <!--
- HTML 4.01 Strict
- Document type as defined on http://www.w3.org/TR/html401/
- -->
- <head>
- <title>Title here!</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- </head>
- <body>
-
- </body>
- </html>
- </token>
- <token name="HTML 4.01 Frameset"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
- "http://www.w3.org/TR/html4/frameset.dtd">
- <html>
- <!--
- HTML 4.01 FrameSet
- Document type as defined on http://www.w3.org/TR/html401/
- -->
- <head>
- <title>Title here!</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- </head>
- <frameset>
-
- </frameset>
- </html></token>
- <token name="CSS 1.0 File">BODY {
- font-size: 20px;
- font-family: Arial, Helvetica, serif;
- }
- </token>
- <token name="CSS 1.0 Embedded"><style type="text/css">
- BODY { font-size: 12pt; color: gray; }
- H1 { font-size: 24pt; font-weight: bold; color: gray; }
- </style></token>
- </section>
- </snippets>
-